import Editor from '@hufe921/canvas-editor';
const CanvasEditor = () => {
	const editorRef = useRef<HTMLDivElement>(null);
	useEffect(() => {
		new Editor(
			editorRef.current as HTMLDivElement,
			[
				{
					value: 'Hello World'
				}
			],
			{}
		);
	}, []);
	return (
		<div>
			<div id="c-edit" ref={editorRef}></div>
		</div>
	);
};

export default CanvasEditor;
